e <- CEntity();
CEntityManager.getInstance().addEntity(e);

e <- CEntity();
CEntityManager.getInstance().addEntity(e);

e <- CEntity();
CEntityManager.getInstance().addEntity(e);

class CStaticObject extends CEntity
{
	function update()
	{
		print("updating staticObject");
	}
	
	function paint()
	{
		print("painting staticObject");
		CEntity.paint();
	}
};

e <- CStaticObject();
CEntityManager.getInstance().addEntity(e);

CEntityManager.getInstance().update();
print("---");
CEntityManager.getInstance().paint();
